package sixth.接口;
interface A1{//接口
    public String AUTHOR="梨花";
    public void print();
    public String getInfo();
}
abstract class B1{//抽象类
    public abstract void say();
}
class X1 extends B1 implements A1{
    public void say(){
        System.out.println("Hello Java!");
    }
    public void print(){
        System.out.println("作者："+AUTHOR);
    }
    public String getInfo(){
        return "HELLO";
    }
}
public class 子类同时实现接口和继承抽象类 {
    public static void main(String[] args) {
        X1 x1 = new X1();
        x1.say();
        x1.print();
    }
}
